import 'package:flutter/material.dart';

class Mine extends StatefulWidget {
  @override
  MineState createState() => MineState();
}

class MineState extends State {
  @override
  Widget build(BuildContext context) {
    return ListView(
      children: <Widget>[
        Container(
          margin: EdgeInsets.only(top: 15.0),
          padding: EdgeInsets.fromLTRB(20.0, 10.0, 10.0, 10.0),
          decoration: BoxDecoration(color: Colors.white, boxShadow: <BoxShadow>[
            BoxShadow(
                color: Colors.grey[300],
            ),
          ]),
          child: Row(
            crossAxisAlignment: CrossAxisAlignment.center,
            mainAxisAlignment: MainAxisAlignment.start,
            children: <Widget>[
              Container(
                  margin: EdgeInsets.only(right: 10.0),
                  width: 60.0,
                  height: 60.0,
                  decoration: BoxDecoration(
                      shape: BoxShape.rectangle, //可以设置圆角
                      borderRadius: BorderRadius.circular(5.0),
                      image: DecorationImage(
                        fit: BoxFit.fill,
                        image: AssetImage(
                          "image/a001.jpg",
                        ),
                      )),
                ),
              Column(
                mainAxisAlignment: MainAxisAlignment.spaceAround,
                crossAxisAlignment: CrossAxisAlignment.start,
                children: <Widget>[
                  Container(
                    alignment: Alignment.center,
                    height: 30,
                    child: Text(
                      "野生程序员",
                      style: TextStyle(fontSize: 20.0),
                    ),
                  ),
                  Container(
                    height: 30,
                    alignment: Alignment.center,
                    child: Text(
                      "ID:13137128413",
                      style: TextStyle(
                        fontSize: 18.0,
                        color: Colors.grey,
                      ),
                    ),
                  ),
                ],
              ),
              Spacer(),
              IconButton(
                icon: Icon(Icons.center_focus_strong),
                iconSize: 26.0,
                color: Colors.grey,
                onPressed: () {},
              ),
            ],
          ),
        ),
        Container(
          margin: EdgeInsets.only(top: 30),
          height: 50.0,
          padding: EdgeInsets.fromLTRB(20.0, 10.0, 10.0, 10.0),
          decoration: BoxDecoration(color: Colors.white, boxShadow: <BoxShadow>[
            BoxShadow(
                color: Colors.grey[300],
                ),
          ]),
          child: Row(
            mainAxisAlignment: MainAxisAlignment.start,
            crossAxisAlignment: CrossAxisAlignment.center,
            children: <Widget>[
              Icon(
                Icons.phone_android,
                color: Colors.blue[600],
              ),
              Container(
                margin: EdgeInsets.only(left: 15.0),
                child: Text(
                  "13137128413",
                  style: TextStyle(fontSize: 18.0),
                ),
              ),
            ],
          ),
        ),
        Container(
          height: 50.0,
          padding: EdgeInsets.fromLTRB(20.0, 10.0, 10.0, 10.0),
          decoration: BoxDecoration(color: Colors.white, boxShadow: <BoxShadow>[
            BoxShadow(
                color: Colors.grey[300],
                ),
          ]),
          child: Row(
            mainAxisAlignment: MainAxisAlignment.start,
            crossAxisAlignment: CrossAxisAlignment.center,
            children: <Widget>[
              Icon(
                Icons.mail,
                color: Colors.blue[600],
              ),
              Container(
                margin: EdgeInsets.only(left: 15.0),
                child: Text(
                  "875079028@qq.com",
                  style: TextStyle(fontSize: 18.0),
                ),
              )
            ],
          ),
        ),
        Container(
          height: 50.0,
          padding: EdgeInsets.fromLTRB(20.0, 10.0, 10.0, 10.0),
          decoration: BoxDecoration(color: Colors.white, boxShadow: <BoxShadow>[
            BoxShadow(
                color: Colors.grey[300],
                ),
          ]),
          child: Row(
            mainAxisAlignment: MainAxisAlignment.start,
            crossAxisAlignment: CrossAxisAlignment.center,
            children: <Widget>[
              Icon(
                Icons.work,
                color: Colors.blue[600],
              ),
              Container(
                margin: EdgeInsets.only(left: 15.0),
                child: Text(
                  "计算机互联网",
                  style: TextStyle(fontSize: 18.0),
                ),
              )
            ],
          ),
        ),
        Container(
          height: 50.0,
          padding: EdgeInsets.fromLTRB(20.0, 10.0, 10.0, 10.0),
          decoration: BoxDecoration(color: Colors.white, boxShadow: <BoxShadow>[
            BoxShadow(
                color: Colors.grey[300],
                ),
          ]),
          child: Row(
            mainAxisAlignment: MainAxisAlignment.start,
            crossAxisAlignment: CrossAxisAlignment.center,
            children: <Widget>[
              Icon(
                Icons.location_on,
                color: Colors.blue[600],
              ),
              Container(
                margin: EdgeInsets.only(left: 15.0),
                child: Text(
                  "中国北京市中关村",
                  style: TextStyle(fontSize: 18.0),
                ),
              )
            ],
          ),
        ),
        Container(
          margin: EdgeInsets.only(top: 30),
          height: 50.0,
          padding: EdgeInsets.fromLTRB(20.0, 10.0, 10.0, 10.0),
          decoration: BoxDecoration(color: Colors.white, boxShadow: <BoxShadow>[
            BoxShadow(
                color: Colors.grey[300],
                ),
          ]),
          child: Row(
            mainAxisAlignment: MainAxisAlignment.start,
            crossAxisAlignment: CrossAxisAlignment.center,
            children: <Widget>[
              Icon(
                Icons.widgets,
                color: Colors.blue[600],
              ),
              Container(
                margin: EdgeInsets.only(left: 15.0),
                child: Text(
                  "收藏",
                  style: TextStyle(fontSize: 18.0),
                ),
              ),
              Spacer(),
              Icon(
                Icons.keyboard_arrow_right,
                color: Colors.grey,
              )
            ],
          ),
        ),
        Container(
          height: 50.0,
          padding: EdgeInsets.fromLTRB(20.0, 10.0, 10.0, 10.0),
          decoration: BoxDecoration(color: Colors.white, boxShadow: <BoxShadow>[
            BoxShadow(
                color: Colors.grey[300],
                ),
          ]),
          child: Row(
            mainAxisAlignment: MainAxisAlignment.start,
            crossAxisAlignment: CrossAxisAlignment.center,
            children: <Widget>[
              Icon(
                Icons.settings,
                color: Colors.blue[600],
              ),
              Container(
                margin: EdgeInsets.only(left: 15.0),
                child: Text(
                  "设置",
                  style: TextStyle(fontSize: 18.0),
                ),
              ),
              Spacer(),
              Icon(
                Icons.keyboard_arrow_right,
                color: Colors.grey,
              )
            ],
          ),
        ),
      ],
    );
  }
}
